{php $listwenzis = \Phpcmf\Service::M()->db->table('module_form')->where('module', 'quan')->where('table', 'son')->get()->getRowArray();}
{php $listwenzi = dr_string2array($listwenzis['setting']);}
{mform module=quan form=son order=inputtime shenhe=1 page=1 pagesize=100 return=t}
<!--图片-->
{php $imgs = dr_get_content_img($t.neirong);}
<!--列表重复-->
<div class="d-yuanjiao-10 d-kuan d-waigao-20 d-beijing-baise d-bianhua-10">
	<!--头部-->
	<div class="d-kuan d-buhuanhang  d-xia-10">
		<!--头部-->
		<div class="d-yuanjiao-10">
			<a href="{dr_url('huiyuan/show/index',['uid' => $t.uid])}">
				<img src="{dr_avatar($t.uid)}" width="40px" height="40px" class="d-yuanjiao-50"/>
			</a>
		</div>
		<div class="d-zuo-10 d-kuan">
			<div class="d-jiacu d-buhuanhang">
				<div class="d-jiacu d-quxian-0">
					<a href="{dr_url('huiyuan/show/index',['uid' => $t.uid])}">
						{php $userweixin=\Phpcmf\Service::M()->db->table('member_oauth')->where('uid', $t.uid)->get()->getRowArray();}
						{php $user=dr_member_info($t.uid);}
							{if $userweixin.nickname}
								{$userweixin.nickname}
							{elseif $user.name}
								{$user.name}
							{else}
								{$user.username}
							{/if}
					</a>
				</div>
				{loop $user.group $tt}
					{if $tt.group_icon}<div class="d-zuo-10"><img src="{$tt.group_icon}" width="60px" height="15px" class="d-yuanjiao-50"/></div>{/if}
				{/loop}
			</div>
			<div class="d-zitiyanse-hui d-wenzi-12">
				{loop $user.group $tt}
					{$tt.group_name}
				{/loop}
				<i class="fa fa-eye"></i><span class="d-zuo-10">{$t.hits}</span>
				<span class="d-wenzi-12 d-zitiyanse-hui" style="margin: 0px 0 0px 15px;">
					{php $ip=\Phpcmf\Service::L('ip')->address($t.inputip);}
					{if $ip == "未知地区"}
					<i class="fa fa-map-marker"></i> 中国
					{else}
					<i class="fa fa-map-marker"></i> {$ip;}
					{/if}
				</span>
			</div>
		</div>
		<!--关 注-->
		<div class="d-kuan-160">
			<div class="d-zitiyanse-hui d-zuo-10 d-div-you d-buhuanhang">
			    <a  id="guanzhu_list_{$t.uid}" data-id="{$t.uid}" class="guanzhu_list">
				    {dr_guanzhu_list($t.uid, $member.id)} 
				</a>
			</div>

		</div>
		<!--关 注-->
	</div>
	<!--列表内容-->
	<div class="d-kuan d-xia-10 d-quxian-0">
		<!--标题{dr_member_url('login/oauth', ['name' => $name, 'type' => 1, 'id' => $id])} /quan/{$t.id}.html-->
		<a href="{dr_son_url($t)}"> 
			<div class="d-jiacu d-wenzi-16">{$t.title}</div>
			<!--简介-->
			<div class="d-chaochu-6 d-wenzi-14 d-list d-zitiyanse-hui d-huanhang {if !$t.title} d-zitiyanse-hei d-wenzi-16{/if}">
			    {if $listwenzi['is_listwenzi'] == 1}
				    {dr_strcut(dr_clearhtml($t.neirong), 70)}
				{else}
					{dr_get_content_quimgs($t.neirong)}
				{/if}
			</div>
		</a>
		<div class="d-shang-10 d-kuan"></div>
		{if $listwenzi['is_listtupian'] == 1}
		<div id="d-tupian-{$t.id}">
			{if !$t.thumb}
				{template "index-tupian-list.html"}
			{/if}
		</div>
		<script>
		var viewer = new Viewer(document.getElementById('d-tupian-{$t.id}'), {
		  	//url: 'data-kujue',
			toolbar: false,//关闭工具栏
			title: false,//关闭标题栏
			backdrop: true, //点击遮罩层不关闭
			rotatable: false, //图片是否可旋转
			scalable: false, //图片是否可翻转
			tooltip: false, //显示缩放百分比
		  });
		</script>
		{else}
		<a href="/quan/{$t.id}.html"> 
		    {if !$t.thumb}
		    	{template "index-tupian-list.html"}
		    {/if}
		</a>
		{/if}
		
	</div>
	<!--下载-->
	{if $t.xzzt == 1}
		{if $t.xzxz == 1}
			<!--统一免费-->
			{template "index-list-xiazai-mianfei.html"}
		{elseif $t.xzxz == 2}
			<!--会员免费-->
			{template "index-list-huiyuanmianfei.html"}
		{elseif $t.xzxz == 3}
			<!--统一付费-->
			{template "index-list-xiazai.html"}
		{elseif $t.xzxz == 4}
			<!--积分-->
			{template "index-list-xiazai-jifen.html"}
		{elseif $t.xzxz == 5}
			<!--点赞-->
			{template "index-list-xiazai-dianzan.html"}
		{elseif $t.xzxz == 6}
			<!--评论-->
			{template "index-list-xiazai-pinglun.html"}
		{/if}
	{/if}
	<!--列表评论-->
	<div class="d-kuan">
		<div class="d-kuan d-wenzi-touming-90 d-buhuanhang d-quxian-0 d-xia-10" id="zanlist_list">
			<div id="zanlist_list_{$t.id}" data-id="{$tt.uid}">
				{table table=1_quan_form_son_zan cid=$t.id page=1 pagesize=10 return=tt}
					<img src="{dr_avatar($tt.uid)}" width="25" height="25" class="d-touxiang-10" id="gerenzan_{$t.id}_{$tt.uid}" data-id="{$tt.uid}"/>
				{/table}
			</div>
		</div>
		<div class="row ">
			<div class="d-hanggao-24 col-xs-6 d-zitiyanse-hui d-quxian-0 d-chaochu">
				{php $guishuquan=\Phpcmf\Service::M()->db->table('1_quan')->where('id', $t.cid)->get()->getRowArray();}
				<a href="{dr_url('quan/show/index',['id' => $guishuquan['id']])}"><span class="d-wenzi-12 d-neikuang-2-5 d-bian-1 d-yuanjiao-50 d-zitiyanse-hui"><i class="bi bi-record-circle"></i> 
				{$guishuquan['title']}</span></a> 
				{if $guishuquan['price']}
					{if $t.vip == 0}
						<span class="d-zuo-4 d-wenzi-12 d-neikuang-2-5 d-bian-1 d-yuanjiao-50 d-zitiyanse-hongse">
							<i class="fa fa-unlock"></i> 免 费 
						</span>
					{/if}
				{/if}
				<span class="d-zuo-10 d-chaochu">{dr_fdate($t._inputtime)}</span>
			</div>
			<div class="col-xs-6 ">
				<div class="row ">
					<div class="col-xs-6 ">
						<div class=" ">
							<div class="d-zitiyanse-hui d-div-you d-buhuanhang">
								<img src="{HOME_THEME_PATH}quan/img/pinglun.svg" width="24px" height="24px" class="d-yuanjiao-50 d-div-zuo"/>
								<div class="d-zitiyanse-hui d-hanggao-24 d-zuo-10 d-div-yuo">{intval($t.comments)}</div>
							</div>
						</div>
					</div>
					<div class="col-xs-6 ">
						<div class=" ">
							<div class="d-zitiyanse-hui d-zuo-10 d-div-you d-buhuanhang">
							    <a  id="tag_zan_list_{$t.id}" data-id="{$t.id}" class="tag_zan_list">
								    {dr_quan_tag_zan_list($t.id, $t.zan)} 
								</a>
								<div class="d-zitiyanse-hui d-hanggao-24 d-zuo-10 d-div-yuo" {if $member} id="module_zan_list_{$t.id}"{/if}>{intval($t.zan)}</div>
							</div>
							
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
{/mform}